package com.baidu.bulls.stock.user.dao;

import com.baidu.bulls.stock.entity.user.Institution;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface InstitutionMapper extends BaseMapper<Institution> {

    /**
     * 通过公司id查机构
     */
    @Select("select * from t_institution where detailInstitutionId = ${value}")
    Institution selectByCompanyId(Long companyId);
}
